package xyz.riceball.test.bean;

import xyz.riceball.annotation.Autowired;
import xyz.riceball.annotation.Service;
import xyz.riceball.annotation.Value;

/**
 * <p>
 *
 * </p>
 *
 * @author xiaovcloud
 * @since 2021/6/29 22:38
 */
@Service
public class BBean {

    @Value("34")
    private int id;

    @Value("李四")
    private String name;

    @Autowired
    //@Qualifier("aBean")
    private ABean a;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public ABean getA() {
        return a;
    }

    public void setA(ABean a) {
        this.a = a;
    }

    @Override
    public String toString() {
        return "BBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", a=" + a +
                '}';
    }
}
